import * as types from '../../mutation-types/inform/index';

const state = {
	currentPage :1,
	totalCount : 0,
	pageSize: 50,
	version:'',
	Status:'',
	startTime:'',
	endTime:''
};
const mutations = {
    [types.INFO_CURRENTPAGE] (state , {currentPage}){
        state.currentPage = currentPage;
    },
    [types.INFO_PAGESIZE] (state , {pageSize}){
        state.pageSize = pageSize;
    },
    [types.INFO_TOTALCOUNT] (state , {totalCount}){
        state.totalCount = totalCount;
    },
    [types.INFO_VERSION] (state , {version}){
        state.version = version;
    },
    [types.INFO_STATUS] (state , {Status}){
        state.Status = Status;
    },
    [types.INFO_STARTTIME] (state , {startTime}){
        state.startTime = startTime;
    },
    [types.INFO_ENDTIME] (state , {endTime}){
        state.endTime = endTime;
    },
};

export default {
  state,
  mutations
};